package com.scu.hotelsystem.pojo;

import com.scu.hotelsystem.util.Tag;
import com.scu.hotelsystem.util.search.VipCateSearch;

public class VipCate {
    private int id;
    private String name;
    private double discount;
    private String desc;
    private double price;
    private int lastMonths;
    private int tag;

    public VipCate() {
        this.tag = Tag.VALID;
    }

    public VipCate(VipCateSearch vipCateSearch){
        if (vipCateSearch != null){
            if (vipCateSearch.getId()!=null){
                this.id = vipCateSearch.getId();
            }
            this.name = vipCateSearch.getName();
        }
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getLastMonths() {
        return lastMonths;
    }

    public void setLastMonths(int lastMonths) {
        this.lastMonths = lastMonths;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }
}
